package com.service;

import com.domain.Account;
import com.domain.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AccountService {

    public void save(Account account);

    public List<Account> findAll();
    public Account findById(int id);
    public List<Account> findByIds(String name);

    public int deleteById(int id);
    public int updateAccount(Account account);

//user下
    public List<User> checkUser(String username, String password);

    public List<User> findUsers();
    public void signUp(String username, String password);

    public int deleteUserById(int id);

}
